Restoring users by DXL script

Hello,
I am beginner in this Forum and soon I need an answer.
I am trying to read documentation about how to restore a userlist Archive via DXL scripting, reading this archive from a file.

I wanted to use the macrofunction get(archiveName,archiveData).. and
I hoped to find inside ArchiveData all the informations I needed.
(all this, because I need to add a personal filter in this importing)

Can Somebody help me?

Bracco (Max)
Bracco - Fri Aug 13 05:19:06 EDT 2010

Re: Restoring users by DXL script
llandale - Fri Aug 13 10:52:28 EDT 2010

It does not make sense to restore a user database into a database unless:
[] The user archive came from that database, or from some related spawned database
[] This database's user list is hopelessly corrupted or lost

Anyway, this DXL command can do it:
restoreUserlist
string restoreUserlist(string fileName)
Operation
Restores the user list from the archive file fileName.

The fileName should of course have extension "*.dua" and have been created with this command:

archive (user list)
string archive(string fileName, bool span)
Operation
Creates an archive of the user list, and puts it in fileName. The default file type is .dua.

Don't do it. Fix the user problems manually.

  • Louie

Re: Restoring users by DXL script
Janice.Bell - Tue Oct 19 02:31:37 EDT 2010

llandale wrote:
It does not make sense to restore a user database into a database unless:
] The user archive came from that database, or from some related spawned database[ This database's user list is hopelessly corrupted or lost

Anyway, this DXL command can do it:
restoreUserlist
string restoreUserlist(string fileName)
Operation
Restores the user list from the archive file fileName.

The fileName should of course have extension "*.dua" and have been created with this command:

archive (user list)
string archive(string fileName, bool span)
Operation
Creates an archive of the user list, and puts it in fileName. The default file type is .dua.

Don't do it. Fix the user problems manually.

  • Louie

Thanks for your sharing! It helps me out of the problem.